package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastGoodsSell implements Serializable {
    private Integer id;

    private Integer businessid;

    private String businessname;

    private String content;

    private Date createtime;

    private Double discount;

    /**
     * mini_num
     */
    private String imgpath;

    private String name;

    private Double price;

    private Integer selltypeid;

    private String selltypename;

    private Integer status;

    private Integer typeid;

    private String typename;

    private Integer salesnum;

    private Integer num;

    private Integer star;

    private Integer ptype;

    private Integer agentid;

    private String agentname;

    private String miniImgpath;

    private Integer islimited;

    private Date limiendtime;

    private Date limistarttime;

    private Integer limitnum;

    private Integer limittype;

    private Integer deleted;

    private String tags;

    private String unit;

    /**
     * 子标题
     */
    private String subtitle;

    /**
     * 是否必选商品
     */
    private Boolean required;

    /**
     * 最低购买数量
     */
    private Integer minNum;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastGoodsSell withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBusinessid() {
        return businessid;
    }

    public RunfastGoodsSell withBusinessid(Integer businessid) {
        this.setBusinessid(businessid);
        return this;
    }

    public void setBusinessid(Integer businessid) {
        this.businessid = businessid;
    }

    public String getBusinessname() {
        return businessname;
    }

    public RunfastGoodsSell withBusinessname(String businessname) {
        this.setBusinessname(businessname);
        return this;
    }

    public void setBusinessname(String businessname) {
        this.businessname = businessname == null ? null : businessname.trim();
    }

    public String getContent() {
        return content;
    }

    public RunfastGoodsSell withContent(String content) {
        this.setContent(content);
        return this;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastGoodsSell withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Double getDiscount() {
        return discount;
    }

    public RunfastGoodsSell withDiscount(Double discount) {
        this.setDiscount(discount);
        return this;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public String getImgpath() {
        return imgpath;
    }

    public RunfastGoodsSell withImgpath(String imgpath) {
        this.setImgpath(imgpath);
        return this;
    }

    public void setImgpath(String imgpath) {
        this.imgpath = imgpath == null ? null : imgpath.trim();
    }

    public String getName() {
        return name;
    }

    public RunfastGoodsSell withName(String name) {
        this.setName(name);
        return this;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Double getPrice() {
        return price;
    }

    public RunfastGoodsSell withPrice(Double price) {
        this.setPrice(price);
        return this;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getSelltypeid() {
        return selltypeid;
    }

    public RunfastGoodsSell withSelltypeid(Integer selltypeid) {
        this.setSelltypeid(selltypeid);
        return this;
    }

    public void setSelltypeid(Integer selltypeid) {
        this.selltypeid = selltypeid;
    }

    public String getSelltypename() {
        return selltypename;
    }

    public RunfastGoodsSell withSelltypename(String selltypename) {
        this.setSelltypename(selltypename);
        return this;
    }

    public void setSelltypename(String selltypename) {
        this.selltypename = selltypename == null ? null : selltypename.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public RunfastGoodsSell withStatus(Integer status) {
        this.setStatus(status);
        return this;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public RunfastGoodsSell withTypeid(Integer typeid) {
        this.setTypeid(typeid);
        return this;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public String getTypename() {
        return typename;
    }

    public RunfastGoodsSell withTypename(String typename) {
        this.setTypename(typename);
        return this;
    }

    public void setTypename(String typename) {
        this.typename = typename == null ? null : typename.trim();
    }

    public Integer getSalesnum() {
        return salesnum;
    }

    public RunfastGoodsSell withSalesnum(Integer salesnum) {
        this.setSalesnum(salesnum);
        return this;
    }

    public void setSalesnum(Integer salesnum) {
        this.salesnum = salesnum;
    }

    public Integer getNum() {
        return num;
    }

    public RunfastGoodsSell withNum(Integer num) {
        this.setNum(num);
        return this;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getStar() {
        return star;
    }

    public RunfastGoodsSell withStar(Integer star) {
        this.setStar(star);
        return this;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Integer getPtype() {
        return ptype;
    }

    public RunfastGoodsSell withPtype(Integer ptype) {
        this.setPtype(ptype);
        return this;
    }

    public void setPtype(Integer ptype) {
        this.ptype = ptype;
    }

    public Integer getAgentid() {
        return agentid;
    }

    public RunfastGoodsSell withAgentid(Integer agentid) {
        this.setAgentid(agentid);
        return this;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getAgentname() {
        return agentname;
    }

    public RunfastGoodsSell withAgentname(String agentname) {
        this.setAgentname(agentname);
        return this;
    }

    public void setAgentname(String agentname) {
        this.agentname = agentname == null ? null : agentname.trim();
    }

    public String getMiniImgpath() {
        return miniImgpath;
    }

    public RunfastGoodsSell withMiniImgpath(String miniImgpath) {
        this.setMiniImgpath(miniImgpath);
        return this;
    }

    public void setMiniImgpath(String miniImgpath) {
        this.miniImgpath = miniImgpath == null ? null : miniImgpath.trim();
    }

    public Integer getIslimited() {
        return islimited;
    }

    public RunfastGoodsSell withIslimited(Integer islimited) {
        this.setIslimited(islimited);
        return this;
    }

    public void setIslimited(Integer islimited) {
        this.islimited = islimited;
    }

    public Date getLimiendtime() {
        return limiendtime;
    }

    public RunfastGoodsSell withLimiendtime(Date limiendtime) {
        this.setLimiendtime(limiendtime);
        return this;
    }

    public void setLimiendtime(Date limiendtime) {
        this.limiendtime = limiendtime;
    }

    public Date getLimistarttime() {
        return limistarttime;
    }

    public RunfastGoodsSell withLimistarttime(Date limistarttime) {
        this.setLimistarttime(limistarttime);
        return this;
    }

    public void setLimistarttime(Date limistarttime) {
        this.limistarttime = limistarttime;
    }

    public Integer getLimitnum() {
        return limitnum;
    }

    public RunfastGoodsSell withLimitnum(Integer limitnum) {
        this.setLimitnum(limitnum);
        return this;
    }

    public void setLimitnum(Integer limitnum) {
        this.limitnum = limitnum;
    }

    public Integer getLimittype() {
        return limittype;
    }

    public RunfastGoodsSell withLimittype(Integer limittype) {
        this.setLimittype(limittype);
        return this;
    }

    public void setLimittype(Integer limittype) {
        this.limittype = limittype;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public RunfastGoodsSell withDeleted(Integer deleted) {
        this.setDeleted(deleted);
        return this;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getTags() {
        return tags;
    }

    public RunfastGoodsSell withTags(String tags) {
        this.setTags(tags);
        return this;
    }

    public void setTags(String tags) {
        this.tags = tags == null ? null : tags.trim();
    }

    public String getUnit() {
        return unit;
    }

    public RunfastGoodsSell withUnit(String unit) {
        this.setUnit(unit);
        return this;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public String getSubtitle() {
        return subtitle;
    }

    public RunfastGoodsSell withSubtitle(String subtitle) {
        this.setSubtitle(subtitle);
        return this;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle == null ? null : subtitle.trim();
    }

    public Boolean getRequired() {
        return required;
    }

    public RunfastGoodsSell withRequired(Boolean required) {
        this.setRequired(required);
        return this;
    }

    public void setRequired(Boolean required) {
        this.required = required;
    }

    public Integer getMinNum() {
        return minNum;
    }

    public RunfastGoodsSell withMinNum(Integer minNum) {
        this.setMinNum(minNum);
        return this;
    }

    public void setMinNum(Integer minNum) {
        this.minNum = minNum;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", businessid=").append(businessid);
        sb.append(", businessname=").append(businessname);
        sb.append(", content=").append(content);
        sb.append(", createtime=").append(createtime);
        sb.append(", discount=").append(discount);
        sb.append(", imgpath=").append(imgpath);
        sb.append(", name=").append(name);
        sb.append(", price=").append(price);
        sb.append(", selltypeid=").append(selltypeid);
        sb.append(", selltypename=").append(selltypename);
        sb.append(", status=").append(status);
        sb.append(", typeid=").append(typeid);
        sb.append(", typename=").append(typename);
        sb.append(", salesnum=").append(salesnum);
        sb.append(", num=").append(num);
        sb.append(", star=").append(star);
        sb.append(", ptype=").append(ptype);
        sb.append(", agentid=").append(agentid);
        sb.append(", agentname=").append(agentname);
        sb.append(", miniImgpath=").append(miniImgpath);
        sb.append(", islimited=").append(islimited);
        sb.append(", limiendtime=").append(limiendtime);
        sb.append(", limistarttime=").append(limistarttime);
        sb.append(", limitnum=").append(limitnum);
        sb.append(", limittype=").append(limittype);
        sb.append(", deleted=").append(deleted);
        sb.append(", tags=").append(tags);
        sb.append(", unit=").append(unit);
        sb.append(", subtitle=").append(subtitle);
        sb.append(", required=").append(required);
        sb.append(", minNum=").append(minNum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}